﻿@model JuniorProject.Models.Employee.EmployeeAccountModel

@{
    ViewBag.Title = "Employee Home";
}

<h2>Employee Home Page</h2>

<h4>
Welcome, @Model.FirstName @Model.LastName!
</h4>
<p>
Please select an option from the list below:
</p>

@switch (Model.AccessLevel)
{
    case 1:     //APPLICANT - SHOULD NOT HAVE ACCESS
        <p>
        You are not authorized to view this page. Please log-out and try again.
        </p>
        break;
    case 2:     //SITE ADMINISTRATOR - FULL ACCESS
        <p>
            @Html.ActionLink("Current Applications", "Applications") <br />
            @Html.ActionLink("Jobs", "Jobs") <br />
            @Html.ActionLink("Job Postings", "JobPostings") <br />
            @Html.ActionLink("Manage Users", "Users") <br />
            @Html.ActionLink("Application Questions", "Questions") <br />
            @Html.ActionLink("Store Locations", "Locations")
        </p>
        break;
    case 3:     //HIRING MANAGER
        <p>
            @Html.ActionLink("Current Applications", "Applications") <br />
            @Html.ActionLink("Job Postings", "JobPostings") <br />
            @Html.ActionLink("Application Questions", "Questions")
        </p>
        break;
    case 4:     //STORE MANAGER
        <p>
            @Html.ActionLink("Current Applications", "Applications") <br />
            @Html.ActionLink("Job Postings", "JobPostings") <br />
            @Html.ActionLink("Application Questions", "Questions")
        </p>
       break;
    case 5:     //HIRING SPECIALIST
        <p>
            @Html.ActionLink("Current Applications", "Applications")
        </p>
       break;
    case 6:     //STAFFING EXPERT
            @Html.ActionLink("Jobs", "Jobs") <br />
            @Html.ActionLink("Application Questions", "Questions")
       break;
    default:    //UNKNOWN ERROR
        <p>
        Sorry, an unknown error occurred. Please log-out and try again.
        </p>
   break;
}
